package cn.kwq.project_manger.chat;

import cn.kwq.project_manger.pojo.Auditable.Auditable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: kwq
 * @Date: 2022/12/31/23:15
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity //作为hibernate
@Table(name = "Chat_Msg")
@Builder
public class ChatMsg extends Auditable<Long> {
    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)//id自增
    @Column(name = "Chat_Msg_Id")
    private Long chatMsgId;

    private Long chatId;

    private String msg;

    private Long toId;

    private Long fromId;

    private Date createTime;
}
